home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
man
/
cat.n
/
read.n
< prev
next >
Wrap
Text File
|
1995-07-25
|
2KB
|
67 lines
rrrreeeeaaaadddd((((nnnn)))) TTTTccccllll (((( )))) rrrreeeeaaaadddd((((nnnn))))
_________________________________________________________________
NNNNAAAAMMMMEEEE
read - Read from a file
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
rrrreeeeaaaadddd ?----nnnnoooonnnneeeewwwwlllliiiinnnneeee? _f_i_l_e_I_d
rrrreeeeaaaadddd _f_i_l_e_I_d _n_u_m_B_y_t_e_s
_________________________________________________________________
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
In the first form, all of the remaining bytes are read from
the file given by _f_i_l_e_I_d; they are returned as the result of
the command. If the ----nnnnoooonnnneeeewwwwlllliiiinnnneeee switch is specified then the
last character of the file is discarded if it is a newline.
In the second form, the extra argument specifies how many
bytes to read; exactly this many bytes will be read and
returned, unless there are fewer than _n_u_m_B_y_t_e_s bytes left in
the file; in this case, all the remaining bytes are
returned. _F_i_l_e_I_d must be ssssttttddddiiiinnnn or the return value from a
previous call to ooooppppeeeennnn; it must refer to a file that was
opened for reading. Any existing end-of-file or error |
condition on the file is cleared at the beginning of the |
rrrreeeeaaaadddd command.
KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
file, read
Page 1 (printed 7/17/95)